<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterTableAddSubmitTimeToWorkOrderApplyManager extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('work_order_apply_manager', function (Blueprint $table) {
            $table->unsignedInteger("submitTime")
                  ->comment("提交时间")
                  ->default(0)
                  ->after("solution");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('work_order_apply_manager', function (Blueprint $table) {
            $table->dropColumn([
                "submitTime"
            ]);
        });
    }
}
